package com.ruoyi.maode.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 供应商实体类
 * @author zhangwenqiang
 */
@Data
@Accessors(chain = true)
@TableName("supplier")
@ApiModel(value = "Supplier对象", description = "供应商表")
public class Supplier {

    @ApiModelProperty("供应商序号")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("供应商名称")
    private String supplierName;

    @ApiModelProperty("供应商地址")
    private String supplierAddress;

    @ApiModelProperty("供应商联系电话")
    private String supplierPhone;

    @ApiModelProperty("供应商邮箱")
    private String email;

    @ApiModelProperty("供应商传真")
    private String fax;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
